<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<script type="text/javascript">
function checkForm(){
	if(form1.upPic.value==''){
		alert('请选择文件');
		return false;
	}
	
}
</script>
  
  <body>
  <iframe name="smz" width="0" height="0" frameborder="0"
                style="display: none" >  </iframe>
  <form name="form1" action="/admin/uploadPicAction.do?method=uploadPic" enctype="MULTIPART/FORM-DATA" method="post" onsubmit="return checkForm()">
    <table>
    <tr>
    <td>
    <input type="file" name="upPic" id="upPic" title="" />
    <input type="submit" value="Upload"/>
	<input type="hidden" name="pagePath" value="${pagePath }" id="_page_path"/>
    </td>
    </tr>
    </table>
    
    </form>
  </body>
  <script type="text/javascript">
        var _page_path = form1.pagePath.value;
        if(null!=_page_path  && ""!=_page_path){
            <%
            session.removeAttribute("pagePath");
            %>
               window.returnValue=_page_path;
               window.close();
        }
    </script>
  
</html>
